import {Selectable, PagedQueryParam} from 'iisp-ng';

export class TableInfo extends Selectable{
	code: string;
	groupName: string;
	name: string;
}
export class NodeImportState {
    tableCode: string;
    nodeCode: string;
    nodeName: string;
    isImported: boolean;
    importedTime: Date;
}
export class TableTemplate extends Selectable{
	id: number;
	tabName: string;
	dscName: string;
	fileUri: string;
	createUser: string;
	createTime: Date;
}
export class DataImport {
	id: number;
	fileUri: string;
	memo: string;
	tableName: string;
    tableDesc: string;
    overrideDuplication = true;
	increasement = true;
	cleanDataClause: string;
	insertCount: number;
	updateCount: number;
	discardCount: number;
	importMessage: string;
	importState: string;
}
export class DataImportAction {
	id: number;
	message: string;
	action: string;
	createUser: string;
	createTime: Date;
}
export class DataExportRequest {
	tableName: string;
	columns: DataExportColumn[];
	templateId: number;
	useTemplate = true;
	fileName: string;
	filter: string;
}
export class DataExportColumn{
	name: string;
	desc: string;
	isRequired: boolean;
	isExport: boolean;
}
export class DataImportQueryParam extends PagedQueryParam {
	fromDate: Date;
	toDate: Date;
    dataDate: Date;
	state = "";
	tableName: string;
	nodeCode = "";
}
export class Node{
    value: string;
    lable: string;
}